X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/2af83e98005a14c439b360a5b9ac636f594d9f0c..38c7d3f9eb7d63937c6654ff5dd6046ce02dd59c:/Super%20Polarity/Renderer.cs?ds=inline diff --git a/Super Polarity/Renderer.cs b/Super Polarity/Renderer.cs new file mode 100644 index 0000000..2f5c5aa --- /dev/null +++ b/Super Polarity/Renderer.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework.Graphics; + +namespace SuperPolarity +{ + class Renderer + { + + static List Actors; + + static Renderer() + { + Actors = new List(); + } + + static public void CheckIn(Actor actor) + { + Actors.Add(actor); + } + + static public void CheckOut(Actor actor) + { + Actors.Remove(actor); + } + + static public void Draw(SpriteBatch spriteBatch) + { + foreach (Actor actor in Actors) + { + actor.Draw(spriteBatch); + } + } + } +}